package com.example.Service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.Service.TaskService;
import com.example.Service.UserService;
import com.example.dao.TaskMapper;
import com.example.pojo.Task;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {

    @Autowired
    private TaskMapper taskMapper;

    public List<Task> selectAll() {
        return taskMapper.selectAll();
    }

    public List<Task> selectByTaskName(String taskName) {
        return taskMapper.selectByTaskName(taskName);
    }

    public void taskAdd(Task task) {
        taskMapper.insertTask(task);
    }

    public List<Task> selectCalssifyNumber() {
        return taskMapper.selectClassifyNumber();
    }

    public List<Task> selectAllTask() {
        return taskMapper.selectAllTask();
    }

    public List<Task> selectExceedTask() {
        return taskMapper.selectExceedTask();
    }

    public List<Task> selectUpcomingTask() {
        return taskMapper.selectUpcomingTask();
    }

    public List<Task> selectTaskEcharts() {
        return taskMapper.selectTaskEcharts();
    }
}
